package thread;


public class threaddemo02 {
    public static void main(String[] args) {
        Mythread m1 = new Mythread();
        Mythread m2 = new Mythread();
        Thread t1 = new Thread(m1);
        Thread t2 = new Thread(m2);
        t1.setName("线程1");
        t2.setName("线程2");
        t1.start();
        t2.start();
    }
}
